package com.competition.web.admin.service;

import java.io.InputStream;
import java.util.function.Function;

import com.returns.value.ICodeAndData;


public interface IUploadService {

	/**
	 * 处理xlxs文件
	 * @param <V>
	 * @param inputStreamSource
	 * @param fileName
	 * @return
	 */
	<V> ICodeAndData<String> parseXlxs(InputStream inputStreamSource, String fileName, long totalSize);

	
	public <V> ICodeAndData<String> uploadFileToOSS(InputStream inputStream, String fileName,
			Function<V, String> function, long totalSize);
	
}
